<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSmokeSqvh75Table extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('profile_sqvh75', function (Blueprint $table) {
            $table->increments('id');
            $table->string('deviceId');
            $table->tinyInteger('Alarm_on');
            $table->tinyInteger('Alarm_fire');
            $table->tinyInteger('Alarm_check');
            $table->tinyInteger('Alarm_battery');
            $table->tinyInteger('Alarm_fault');
            $table->tinyInteger('Base_apart');
            $table->tinyInteger('Base_lost');
            $table->tinyInteger('Base_temperature');
            $table->tinyInteger('Base_battery');
            $table->tinyInteger('Base_other');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('profile_sqvh75');
    }
}
